<?php
/**
 * Created by PhpStorm.
 * User: abcdlzy
 * Date: 15/1/31
 * Time: 下午4:03
 */

define('DB_RUNAT_FILE',  0);
define('DB_RUNAT_MYSQL',  1);
define('DB_RUNAT_MSSQL',  2);
define('DB_RUNAT_SQLITE',  3);

//每页数量
$perPageCount=8;


//登陆密码
$loginPassWord="admin";
//CA私钥字符串
$CAPrivKeyStr="-----BEGIN RSA PRIVATE KEY-----MIIEowIBAAKCAQEAmQ4b4kr5ulBjjOaR48vU2f7adgKkKpOBSjIF+LOiId0M5UmJQYcgav89UR8aSqA90T/m2ac9myvBx+HckbjFwGr3zXY7t1JDWyIWM+q1+P20JCLUo8reiJDMjr0oT5IM4TNa90LmIOJLGYLzn3Dgfw3zgFtHj/arcn8qHuHyVsEDK8ZmFGxqvcshgBaaQi3O6nyWmsFRM4MRdeBfkWVfrKfS5DEv9wEWTWQLlhzesghf6JG4GvzfnQM7Fc0kEk224rjURXlfA9vGBASyGauvNPQyP4yLqQslbRDvW32HSYA7h/WtIpwJl6RPMMduxCcd4gaK4OXqF9k+VefjwOjbvwIDAQABAoIBABBI5QSdz5ZYSU9LlQg0vs/3As19mHQDP8ViLyp4Cm8p8t5OhbEYLIXV5HNGKOj5xboG34wW9EIXVMXsrShADaJcf0M4KkBmG06OAOjDN1tnuwwBPLi0tBq5tVoWnDxjIMWxTiNy1cN38F+lhEBZpTk/hcIJdELIDxPend+tULiUI28JOxrGoWavhHFhyixMFlUh4JSBUqsSv+nKgV3Xziw51seanNQft9obFxJ3/aXvZlkA80oxbQI01OZhYGPPEysPeMpK0v1aCuTE+aWVhdCDdziYP72GGNoAcFKJ8yEdVqOdLadPmnQll+4/0hP00ktgMAaUgrBdCgzSL/k0++ECgYEAnCQnvbLX7WCEztlrwFXUiP32Dv2po3MTGX37uVa6Sy7kO8z4qjHqygVnJRuxS2kFa0mD+2+11oiyikxtQ/UVBGbuIMbCu0Smmr5ON8UYv1/tQ73hrKLRo26PN08Oo3CRIzpZ6B0zbzzFn9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cOC3B+ChFRo8xOcCDKi4CzilG8 NU0M+roez0zKRWXzkW7Jjg8XHkcufh28eQ28LEZ0xcguTBxvAgMBAAGjPzA9MAsG A1UdDwQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRhvP52aUm/huHW TGP8zDu38rHzpzALBgkqhkiG9w0BAQUDgYEAn5HO4DpuB0f+TTrjAy5W9XhoPfHF lcxZongHyAYPK0Q6wzP+jDNRbthfdzfIzdP5rcutVnaIli979Y/B3nGf4dEPRn4E s1ss6cNSpJ09hkZIBTFEapl0kAQBkdT6JbkvjXgC4FTTjvS/wIqu2q32coO+ujqC 0dDAfNcXF3WdnGI= -----END CERTIFICATE-----";
//是否运行于CA模式
$isCA=true;
//CA名字
$CAname="1151220136";
//RSA长度字符串
$RSALength=2048;
//CA的接口URL
$CAIntertfaceURL="http://localhost:20136/interface.php";
//当前服务器的私钥
$privateKey="-----BEGIN RSA PRIVATE KEY-----MIIEpAIBAAKCAQEAsr1bDmsnq6U8HUaS8uDj1psABJ8boVxkqOjlB533lJvsLIz7xr8rOLBkRSosxlbqCP7nAvd9peTIb7qTmasHNinNkIp06Tp/wZL34PVKguFj8j9KymLqd9IvzktippC9dIDHQCQ9es5tn+G5Da8yejtNNMptbAqS9W/1kzTHKR2UmsIQg+360S8QChhBKehZZ7+SkOUTv9gmncpMz533E8lfi5beCYOkcDTLkIQkGloJcefkdbBY8yEHKq4eeYJYNgdsE1YIpAz+Xu/LWhKOXlV6LoIqeQ6ZYVpLEbPC1CJhb3RZKV3aQHddiigqz/jYccTGAdfmjoZEcJKSOF6shwIDAQABAoIBAAcEcie9wz/068hGdgx9EdTiHv0Pdhk+tGEBS8Shyg+Wk44oNtZVuQ+vtTAV+M4MqYGS6GTwbIlv0wK384WL9muE9qIfHXnupwdlir/VQYij6rWfEIOjoIr1wJS71vKtKhMB31DAW32PzzQAu7Ay2at82oohDGy6eYyTSbPu1YbippknGxvvYi446aGVfKa2raELKIwIePCNbBn6Gowo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DCCAZOgAwIBAgIBADALBgkqhkiG9w0BAQUwHDEaMBgGA1UECgwRcGhwc2VjbGliIGRlbW8gQ0EwHhcNMTUwMjE1MTYyOTE3WhcNMTYwMjE1MTYyOTE3WjAaMRgwFgYDVQQKDA8xMTUxMjIwMTM2IGNlcnQwggEgMAsGCSqGSIb3DQEBAQOCAQ8AMIIBCgKCAQEAsr1bDmsnq6U8HUaS8uDj1psABJ8boVxkqOjlB533lJvsLIz7xr8rOLBkRSosxlbqCP7nAvd9peTIb7qTmasHNinNkIp06Tp/wZL34PVKguFj8j9KymLqd9IvzktippC9dIDHQCQ9es5tn+G5Da8yejtNNMptbAqS9W/1kzTHKR2UmsIQg+360S8QChhBKehZZ7+SkOUTv9gmncpMz533E8lfi5beCYOkcDTLkIQkGloJcefkdbBY8yEHKq4eeYJYNgdsE1YIpAz+Xu/LWhKOXlV6LoIqeQ6ZYVpLEbPC1CJhb3RZKV3aQHddiigqz/jYccTGAdfmjoZEcJKSOF6shwIDAQABMAsGCSqGSIb3DQEBBQOBgQCqkiJeCCz30JNSY4nhRplHIYWI9djrWsA31+LGIj6iPXAUS59T8K6jEqGcw4A9URWUV+N4EMzPlrvOynBjWsoZINl7a62Xg3/IoUdrJXWmE3zzFbSs0W4zXvj2pDm3R6ragseyXHgkggdLZGm1zY5WIaNDYZTFA3rmot53Bu2gHA==-----END CERTIFICATE-----";

//自身GUID
$selfGUID="1F1D586F-C6BA-B1D5-4790-091ED9F875E4";
$CAGUID="6F9619FF-8B86-D011-B42D-00C04FC964FF";

$tempAESKey="74feea3b727d68577ad8f64ff5abe3bce84b1c515d80282f4f3142e7aed44c12";
$tempAESiv="e4233ac607c6a339ecfce7d5778eb01b9a803a4a9363e8a7878cec39d0d302c7";

$selfInterfaceURL="http://localhost:63342/1151220136/interface.php";
//
$dbRunAt=DB_RUNAT_MYSQL;

//File数据库文件
$FileSQL="filesql";

//SQLite文件
$sqliteFile="sqlite.db";

//mysql设置
$mysql_host="192.168.199.166"; //数据库服务器名称
$mysql_username="root"; // 连接数据库用户名
$mysql_password="123456"; // 连接数据库密码
$mysql_database="1151220136"; // 数据库的名字

//mssql设置
$mssql_host="ms_host"; //数据库服务器名称
$mssql_username="ms_user"; // 连接数据库用户名
$mssql_password="ms_passwd"; // 连接数据库密码
$mssql_database="ms_db"; // 数据库的名字



?>